var windowName = "userInviteSons";
var Page
apiready = function(){
    onWindowShow(function () {
    })
    onWindowHide(function () {
    })
    console.log("index page is OK");
    logYue = new List();
    logXuni = new List();
    logGuquan = new List();
    Page = createVM("#Page",{
        //页面数据
        sons:[]
    },{
        //页面方法
        "init":function () {
            var data = getData4Page()
            // log("data==")
            // logJson(data)
            var id = 0
            if (isTrue(data.id)) {
                id = data.id
            }
            showLoading();
            apiGet("/app/user/share/sons",{id:id},function (res,code) {
                clearLoading();
                // logJson(res,"/app/user/share/sons")
                Page.sons = res.data;
            })
        }
        ,tab:function (index) {
            log(index,"index")
        }
    })
    Page.init()
}
